package cn.hefan.service;

import java.sql.SQLException;

import cn.hefan.dao.LoginDao;
import cn.hefan.domain.Admin;

public class LoginService {

	public static Admin adminLogin(String username,String password) {
		Admin admin =null;
		try {
			admin = LoginDao.adminLogin(username,password);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return admin;
		
	}
	
}
